package com.harmay.center.monitor;

import com.harmay.boot.swagger2.autoconfigure.EnableSwagger2Doc;
import com.harmay.center.monitor.redis.RedisProxy;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

@Slf4j
@EnableHystrix
@EnableDiscoveryClient
@EnableSwagger2Doc
@SpringBootApplication
@EnableAsync
@EnableConfigurationProperties
@MapperScan("com.harmay.center.monitor.mapper")
@Import({RedisProxy.class})
public class MonitorApplication {

    public static void main(String[] args) {
        SpringApplication.run(MonitorApplication.class, args);
    }


}
